﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using Migraine.MyUC.UCHienThi;
using Migraine.MyUC.UCMenu;




namespace Migraine
{
    public partial class FrmHome : Form
    {
        public FrmHome()
        {
            InitializeComponent();
            loadmenu();
        }

        void loadmenu()
        {
            ucHome t = new ucHome();
            gbHienthi.Controls.Clear();
            gbHienthi.Controls.Add(t);

            ucMenuHome menu = new ucMenuHome();
            gbMenu.Controls.Clear();
            gbMenu.Controls.Add(menu);

        }
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            loadmenu();
        }

        private void label9_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void FrmHome_Load(object sender, EventArgs e)
        {

        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            ucHuongDan huongdan = new ucHuongDan();
            gbHienthi.Controls.Clear();
            gbHienthi.Controls.Add(huongdan);
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            ucMenuBN menubn=new ucMenuBN();
            gbMenu.Controls.Clear();
            gbMenu.Controls.Add(menubn);


            ucDanhSachBN thembn = new ucDanhSachBN();
            gbHienthi.Controls.Clear();
            gbHienthi.Controls.Add(thembn);
        }

        private void pictureBox5_Click(object sender, EventArgs e)
        {
           // Form t = this.ParentForm;
            ucDanhMucTrieuChung dmtc = new ucDanhMucTrieuChung();
            gbMenu.Controls.Clear();
            gbMenu.Controls.Add(dmtc);
            gbHienthi.Controls.Clear();
            ucDanhSachTrieuChung danhstc = new ucDanhSachTrieuChung();
            gbHienthi.Controls.Add(danhstc);
        }

        private void pictureBox6_Click(object sender, EventArgs e)
        {
            ucDanhMucLuat dmluat = new ucDanhMucLuat();
            gbMenu.Controls.Clear();
            gbMenu.Controls.Add(dmluat);
            gbHienthi.Controls.Clear();
            ucDanhSachLuat danhsluat = new ucDanhSachLuat();
            gbHienthi.Controls.Add(danhsluat);
        }

        private void pictureBox8_Click(object sender, EventArgs e)
        {
            ucChanBenh chanbenhu = new ucChanBenh();
            gbHienthi.Controls.Clear();
            gbHienthi.Controls.Add(chanbenhu);

        }

        private void pictureBox10_Click(object sender, EventArgs e)
        {
            ucDanhMucBenh dmbenh = new ucDanhMucBenh();
            gbMenu.Controls.Clear();
            gbMenu.Controls.Add(dmbenh);
            gbHienthi.Controls.Clear();
            ucDanhSachBenh danhsbenh = new ucDanhSachBenh();
            gbHienthi.Controls.Add(danhsbenh);
        }

        private void pictureBox4_Click(object sender, EventArgs e)
        {
            loadmenu();
        }

        private void pictureBox7_Click(object sender, EventArgs e)
        {
            loadmenu();
        }

        private void pictureBox9_Click(object sender, EventArgs e)
        {
            loadmenu();
        }
    }
}
